import cv2
# 找到图像途径
path = './preview.jpg'
img = cv2.imread(path)
print(img.shape)
res = cv2.resize(img, (600, 600), interpolation=cv2.INTER_CUBIC)
cv2.imshow('res', res)
key = cv2.waitKey(0)
if key == ord('a'):
    cv2.destroyAllWindows()
